home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Supervisor's Toolkit
/
Network Supervisor's Toolkit.iso
/
tools
/
ubmark
/
cache.c
next >
Wrap
Text File
|
1996-07-10
|
823b
|
36 lines
/*******************************************************************
* cache.c
* output file: cache.exe
* programmer: Michael Day
* copyright: Michael Day, 1990; LAN TIMES, 1990
*
* child process that creates a file to fill the machine's
* drive controller cache, thus removing the controller
* cache as a factor in measuring drive performance
*
* place in /bin directory
********************************************************************/
#include <stdio.h>
main() {
int i;
FILE *source, *dest;
char inchar, outchar;
printf("Copying 10MB file in background. . .\n");
for(;1 != 2;) {
source = fopen("source.txt", "rb");
dest = fopen("dest.txt" , "wb");
while ((inchar = getc(source)) != EOF)
putc(inchar, dest);
fclose(dest);
/*remove(dest);*/
}
}